import logging
from concurrent.futures import ThreadPoolExecutor, as_completed
logging.basicConfig(level=logging.INFO,
                    format='%(asctime)s %(filename)s line:%(lineno)d %(levelname)s:%(message)s',
                    datefmt='%H:%M:%S')
                    
executor = ThreadPoolExecutor(max_workers=16)
tasks = []
task = executor.submit(func, args)
tasks.append(task)
for future in as_completed(tasks):
    if not future.result():
        logging.error("future.result False")
        return False